package cn.hackcloud.designpattern.proxy.staticproxy;

public class ProxyTeacherDao implements ITeacherDao {
	private ITeacherDao teacherDao;

	public ProxyTeacherDao(ITeacherDao teacherDao) {
		super();
		this.teacherDao = teacherDao;
	}

	@Override
	public void teach() {
		System.out.println("开始代理");
		teacherDao.teach();
		System.out.println("代理结束");
	}

}
